From: Juanma Barranquero Date: Sat, 7 Jan 2012 00:26:10 +0000 (+0100) Subject: lisp/progmodes/which-func.el (which-func-mode): Fix bug#10428. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1240 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=aac917ebbf21c21c8a3f9d7fa7ec4239d79f06fd;p=emacs.git lisp/progmodes/which-func.el (which-func-mode): Fix bug#10428. Turn into a non-interactive function and mark as obsolete. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4306f088889..e973d24f4c5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-01-07 Juanma Barranquero + + * progmodes/which-func.el (which-func-mode): Turn into a + non-interactive function and mark as obsolete (bug#10428). + 2012-01-06 Chong Yidong * files.el (hack-dir-local-variables-non-file-buffer): Add doc. diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index 59933a944d5..721c610517a 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el @@ -229,7 +229,9 @@ It creates the Imenu index for the buffer, if necessary." (error "Error in which-func-update: %S" info)))))) ;;;###autoload -(defalias 'which-func-mode 'which-function-mode) +(defun which-func-mode (&optional arg) + (which-function-mode arg)) +(make-obsolete 'which-func-mode 'which-function-mode "24.1") (defvar which-func-update-timer nil)